import request from '@/utils/request'

// 查询vipItem列表
export function listVipItem(query) {
  return request({
    url: '/vipItem/list',
    method: 'get',
    params: query
  })
}

// 分页查询vipItem列表
export function listVipItemByPage(query) {
  return request({
    url: '/vipItem/page',
    method: 'get',
    params: query
  })
}

// 查询vipItem
export function getVipItem(id) {
  return request({
    url: '/vipItem/' + id,
    method: 'get'
  })
}

// 新增vipItem
export function addVipItem(data) {
  return request({
    url: '/vipItem',
    method: 'post',
    data: data
  })
}

// 修改vipItem
export function updateVipItem(data) {
  return request({
    url: '/vipItem',
    method: 'put',
    data: data
  })
}

// 删除vipItem
export function deleteVipItem(id) {
  return request({
    url: '/vipItem/' + id,
    method: 'delete'
  })
}
